<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Views extends Model
{
    protected $table = 'views';
    protected $fillable = [
        'video_id','num','created_at'
    ];
    public $timestamps = false;
    protected $dates = ['created_at'];

    public function video(){
        return $this->belongsTo('App\Models\Videos', 'video_id', 'id');
    }

}
